﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using VisionRoc.Tool;

namespace VisionRoc_Measure
{
    public partial class FormPassward : Form
    {
        public FormPassward()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            try
            {
                if (textBox1.Text == Tool.Passward)
                {
                    Tool.PwdState = 1;
                }
                else
                {
                    Tool.PwdState = 2;
                }
            }
            catch
            {
                Tool.PwdState = 2;
            }
            finally
            {
                this.Close();
            }
           
        }

        private void FormPassward_Load(object sender, EventArgs e)
        {

        }
    }
}
